#pragma once

#include <iostream>
using namespace std;

class Data
{
public:
	Data(int year = 1, int month = 1, int day = 1);
	Data(Data& d);

	bool operator>(const Data& d);
	bool operator==(const Data& d);
	bool operator>=(const Data& d);
	bool operator<(const Data& d);
	bool operator<=(const Data& d);
	bool operator!=(const Data& d);

	Data& operator+=(int day);
	Data operator+(int day);
	Data& operator-=(int day);
	Data operator-(int day);
	int getMonthDay(int year, int month);

	Data operator++();
	Data operator++(int);
	Data operator--();
	Data operator--(int);

	int operator-(Data d);


private:
	int _year;
	int _month;
	int _day;
};